# coding=utf-8
# @Time    : 2018/3/9 11:16
# @Author  : Jiangxu
# @File    : tools.py
# @Software: PyCharm
from  bs4 import BeautifulSoup

def get_bs(html,online=True):
	if online:
		return BeautifulSoup(html,'lxml')
	else:
		return BeautifulSoup(open(html),"lxml")
